<template>
  <div>
    <div><input type="text" v-bind="b" ref="a" /></div>
    <div ref="b" style="width: 200px; height: 200px; background: #000;"></div>
    <button @click="btn">登录</button>
    <video src="https://www.runoob.com/try/demo_source/movie.mp4" controls='true'></video>
  </div>
</template>

<script>
export default {
  data () {
    return {
      a: '',
      b: ''
    }
  },
  methods: {
    btn () {
      console.log(this.$refs.a)
      this.$refs.b.style.background = 'pink'
      this.$message({ message: '密码错误', show: true })
    }
  }
}
</script>

<style></style>
